package tt.love.hw.common;


import javax.servlet.ServletContextEvent;
import javax.servlet.ServletContextListener;


public class ActionConfigListener implements ServletContextListener {

	public void contextDestroyed(ServletContextEvent arg0) {
	}

	public void contextInitialized(ServletContextEvent event) {
		ActionMapping actionMapping = new ActionMapping(event.getServletContext().getResourceAsStream("/WEB-INF/action-config.xml"));
		event.getServletContext().setAttribute("ActionMapping", actionMapping);
	}

}
